package com.md.value.constants;

import lombok.experimental.UtilityClass;

/**
 * @author 刘骄阳
 * 2022-03-07 18:20
 */
@UtilityClass
public class Constants {
  /**
   * 工具类-地球半径
   */
  public static final Double EARTH_RADIUS = 6378.137;
  /**
   * 0-9,a-z字符
   */
  public static final String[] HEX_DIGITS = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"};
  /**
   * 身份证加权因子
   */
  public static final Integer[] AUTH_CODE_WEIGHTING_FACTOR = {7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2, 1};
  /**
   * 身份证鉴权
   */
  public static final String[] AUTH_CODE_SIGN = {"1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2"};
  /**
   * 逗号
   */
  public static final String COMMA = ",";
  /**
   * 下划线
   */
  public static final String UNDERLINE = "_";
  /**
   * 空字符串
   */
  public static final String EMPTY = "";
  /**
   * 空JSON串
   */
  public static final String JSON_EMPTY = "{}";
  /**
   * 本地IP
   */
  public static final String LOCAL_IP = "127.0.0.1";
  /**
   * 本地
   */
  public static final String LOCALHOST = "localhost";
  /**
   * 未定义
   */
  public static final String UNKNOWN = "unknown";
  /**
   * 获取ip的途径
   */
  public static final String[] ADDRESS_NAME =
    {"X-forwarded-for", "Proxy-Client-IP", "WL-Proxy-Client-IP", "HTTP_CLIENT_IP", "HTTP_X_FORWARDED_FOR"};
}
